<!-- INCLUDE overall_header.html -->
<script type="text/javascript">

function show_hide()
{
	if(document.getElementById('cat_mode').value=='0')
	{
		document.getElementById('for_main').style.display='none';
	} else {
		document.getElementById('for_main').style.display='block';
	}
}
</script>

<h1>{L_ACP_CATEGORIE}</h1>
<p>{L_ACP_CATEGORIE_DESC}</p>
<!-- IF S_SHOW_FORM -->
<p><strong>{NAVIGATION}</strong></p>
<form method="post" action="{U_ACTION}">

	<fieldset>
	<legend>{L_CATEGORIE}</legend>
	<dl>
		<dt><label for="main_cat">{L_CAT_MAIN}:</label><br /><span>{L_CAT_SELECT_MAIN}</span></dt>
		<dd><select size="1" id="main_cat" name="parent_id">{POST_SELECT}</select></dd>
	</dl>
<!-- IF S_NEW_CATEGORIE -->
	<dl>
		<dt><label for="cat_mode">{L_CAT_TYPE}:</label><br /><span>{L_CAT_TYPE_DESC}</span></dt>
		<dd><select size="1" name="cat_mode" id="cat_mode" onchange="show_hide()"><option value="1">{L_CAT_SUB}</option><option value="0">{L_CAT_MAIN}</option></select></dd>
	</dl>
<!-- ELSE -->
<input type="hidden" name="cat_mode" value="{CAT_MODE}" />
<!-- ENDIF -->
	<dl>
		<dt><label for="title">{L_CAT_NAME}:</label><br /><span>{L_CAT_NAME_DESC}</span></dt>
		<dd><input type="text" id="title" name="title" size="41" value="{POST_NAME}" /></dd>
	</dl>

	<dl>
		<dt><label for="description">{L_DESCRIPTION}:</label><br /><span>{L_CAT_DECRIPTION_DESC}</span></dt>
		<dd><textarea rows="6" cols="4" id="description" name="description">{POST_DESCRIPTION}</textarea></dd>
		<dd><label><input type="checkbox" class="radio" name="desc_parse_bbcode"<!-- IF S_DESC_BBCODE_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_BBCODE}</label>
			<label><input type="checkbox" class="radio" name="desc_parse_smilies"<!-- IF S_DESC_SMILIES_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_SMILIES}</label>
			<label><input type="checkbox" class="radio" name="desc_parse_urls"<!-- IF S_DESC_URLS_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_URLS}</label></dd>
	</dl>
<!-- IF S_SUB_CATEGORIE -->
<div id="for_main">
	<dl>
		<dt><label for="image">{L_CAT_IMAGE}:</label><br /><span>{L_CAT_IMAGE_DESC}</span></dt>
		<dd><input type="text" id="image" name="image" size="41" value="{POST_IMAGE}" /></dd>
	</dl>
	<dl>
		<dt><label for="display_on_index">{L_DISPLAY_ON_INDEX}:</label><br /><span>{L_DISPLAY_ON_INDEX_DESC}</span></dt>
		<dd><label><input id="display_on_index" type="radio" name="display_on_index" value="1"<!-- IF DISPLAY_ON_INDEX --> checked="checked"<!-- ENDIF --> /> {L_YES}</label> <label><input type="radio" name="display_on_index" value="0"<!-- IF not DISPLAY_ON_INDEX --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl>
		<dt><label for="show_edits">{L_SHOW_EDITS}:</label><br /><span>{L_SHOW_EDITS_DESC}</span></dt>
		<dd><label><input type="radio" id="show_edits" name="show_edits" value="1"<!-- IF SHOW_EDITS --> checked="checked"<!-- ENDIF --> /> {L_YES}</label> <label><input type="radio" name="show_edits" value="0"<!-- IF not SHOW_EDITS --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl>
		<dt><label for="post_forum">{L_POST_FORUM}:</label><br /><span>{L_POST_FORUM_DESC}</span></dt>
		<dd><input type="text" id="post_forum" name="post_forum" size="2" value="{POST_POST_FORUM}" /></dd>
	</dl>

	<dl>
		<dt><label for="ads">{L_ADS}:</label><br /><span>{L_ADS_DESC}</span></dt>
		<dd><textarea rows="6" cols="4" id="ads" name="ads">{POST_ADS}</textarea></dd>
	</dl>


</div>
<!-- ELSE -->
<input type="hidden" name="parent_id" value="{MAIN_ID}" />

<!-- ENDIF -->
	</fieldset> 
	<fieldset class="submit-buttons">
	<legend>{L_SUBMIT}</legend>
	<input class="button1" id="submit" name="submit" value="{L_SUBMIT}" type="submit" />&nbsp;
	<input class="button2" id="reset" name="reset" value="{L_RESET}" type="reset" />
	</fieldset>
</form>
<!-- ELSE -->

<p><strong>{NAVIGATION}</strong></p>

		<table cellspacing="1">
			<col class="row1" /><col class="row1" /><col class="row2" />
		<tbody>
		<!-- BEGIN in_system -->
			<tr>
				<td style="width: 5%; text-align: center;">{in_system.FOLDER_IMAGE}</td>
				<td>
					<!-- IF in_system.IMAGE --><div style="float: {S_CONTENT_FLOW_BEGIN}; margin-right: 5px;"><img src="{in_system.IMAGE}" alt="" /></div><!-- ENDIF -->
					<strong><a href="{in_system.U_CATEGORIE}">{in_system.NAME}</a></strong> <!-- IF in_system.S_MAIN_CAT --> [ {L_CAT_MAIN} ]<!-- ENDIF -->
					<!-- IF in_system.DESCRIPTION --><br /><span>{in_system.DESCRIPTION}</span><!-- ENDIF -->
				</td>
				<td style="vertical-align: top; width: 80px; text-align: right; white-space: nowrap;">
					<!-- IF in_system.S_FIRST_ROW && not in_system.S_LAST_ROW -->
						{ICON_MOVE_UP_DISABLED}
						<a href="{in_system.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
					<!-- ELSEIF not in_system.S_FIRST_ROW && not in_system.S_LAST_ROW-->
						<a href="{in_system.U_MOVE_UP}">{ICON_MOVE_UP}</a>
						<a href="{in_system.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
					<!-- ELSEIF in_system.S_LAST_ROW && not in_system.S_FIRST_ROW -->
						<a href="{in_system.U_MOVE_UP}">{ICON_MOVE_UP}</a>
						{ICON_MOVE_DOWN_DISABLED}
					<!-- ELSE -->
						{ICON_MOVE_UP_DISABLED}
						{ICON_MOVE_DOWN_DISABLED}
					<!-- ENDIF -->
					<a href="{in_system.U_EDIT}">{ICON_EDIT}</a>
					<a href="{in_system.U_DELETE}">{ICON_DELETE}</a>
				</td>
			</tr>
		<!-- END forums -->
		</tbody>
		</table>

<form method="post" action="{S_FORM_ACTION}">
	<fieldset class="quick">
		{L_CAT_CREATE_NEW} <input type="text" name="title" />
		<input type="hidden" name="cat_mode" value="{CAT_MODE}" />
		<input class="button1" id="submit" name="submit" value="{L_SUBMIT}" type="submit" />
	</fieldset>
</form>
<!-- ENDIF -->
<br />
<!-- INCLUDE overall_footer.html -->